package com.databaseManager;

/**
 * @author addzero
 * @version 1.0
 */
public class Patient extends User {
    private String Pworktype;//病人工作类型，长度不超过31位
    private String Ptelphone;//电话号码，长度为11位
    private String Paddr;//家庭住址，长度不超过63位

    /**
     * Patient类构造函数
     * @param pid 病人身份证号，长度为18位的字符串
     * @param password 病人账号登录用密码，长度为6位的字符串
     * @param pname 病人姓名，长度不超过31位
     * @param page 病人年龄
     * @param psex 病人性别，通常用‘男’或‘女’表示
     */
    public Patient(String pid, String password, String pname, int page, String psex) {
        super(pid);
        super.setAge(page);
        super.setName(pname);
        super.setSex(psex);
        super.setPassword(password);
        Pworktype = null;
        Ptelphone = null;
        Paddr = null;
    }

    public String getPworktype() {
        return Pworktype;
    }

    public void setPworktype(String pworktype) {
        Pworktype = pworktype;
    }

    public String getPtelphone() {
        return Ptelphone;
    }

    public void setPtelphone(String ptelphone) {
        Ptelphone = ptelphone;
    }

    public String getPaddr() {
        return Paddr;
    }

    public void setPaddr(String paddr) {
        Paddr = paddr;
    }
}
